#!/usr/bin/env python
# -*- coding:utf-8 -*-

import io
import sys

sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")  # 改变标准输出的默认编码

info = {
    "中国": "北京",
    "美国": "福罗里达",
    "英国": "牛津"

}
for val in info.values():
    print(val)

print(info)

for index, value in info.items():
    p = "编号:{_index},数据为:{_value}".format(_index=index, _value=value);
    print(p)

for index in info.keys():
    print(index)

info.stdout
# iteritems() on python2.x is unused 
# print(info.iteritems())
# info["2"] ="wutenglan"
# p = info.get("1")
# del info["1"]
# info.pop("2")
#  随机删除 
# info.popitem()
# p = dict.fromkeys([6, 7, 8], [1, {"name": "alex"}, 2]) # 初始化一个新的字典

# print(p)
